package com.daxia.ogmall.dto;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.daxia.ogmall.model.Timeline;

public class TimelineDTO extends Timeline {

	private String[] imageArr;
	
	public String[] getImageArr() {
		if (StringUtils.isBlank(getImages())) {
			return new String[] {};
		}
		List<String> list = new ArrayList<String>();
		for (String string : getImages().split(",")) {
			list.add(string);
		}
		return list.toArray(new String[]{});
	}

	public void setImageArr(String[] imageArr) {
		this.imageArr = imageArr;
	}
}
